package com.ross.web.util;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;
import com.ross.web.domain.Users;

public class SessionLogout extends ActionSupport {
	
	private static final long serialVersionUID = -5046793327284302949L;
	private HttpServletRequest request;
	private Users users;
	
	public boolean SessionExpired(){
		
		request = ServletActionContext.getRequest();
		if(request.getSession().getAttribute("userAccess") == null){	
			users = null;
			return true;
		}
		
		return false;
	}

	public HttpServletRequest getRequest() {
		return request;
	}

	public void setRequest(HttpServletRequest request) {
		this.request = request;
	}

	public Users getUsers() {
		return users;
	}

	public void setUsers(Users users) {
		this.users = users;
	}
	
	

}
